#ifndef __RECTANGLE_H__
#define __RECTANGLE_H__

#include <cairo-aliases.h>
#include <position.h>
#include <control.h>
#include <handler.h>
#include <object.h>
#include <size.h>

class Rectangle : public Object, public Position, public Size, public Handler
{
	public:
	Rectangle (double x, double y, double width, double height) : Object (), Position (x, y), Size (width, height), Handler (4)
	{
		controls[0] = Control (x, y);
		controls[1] = Control (x + width, y);
		controls[2] = Control (x + width, y + height);
		controls[3] = Control (x, y + height);
	}

	void draw (CairoContext *);
};

#endif // __RECTANGLE_H__
